// 商品分类选项
export const productCategories = [
  { id: 'electronics', name: '电子产品' },
  { id: 'clothing', name: '服装' },
  { id: 'food', name: '食品' },
  { id: 'books', name: '图书' },
  { id: 'furniture', name: '家具' },
];

// 商品状态选项
export const productStatuses = [
  { id: 'draft', name: '草稿' },
  { id: 'published', name: '已上架' },
  { id: 'out_of_stock', name: '缺货' },
  { id: 'discontinued', name: '已下架' },
];

// 模拟商品数据
export const mockProducts = Array.from({ length: 35 }, (_, i) => ({
  id: `prod_${i + 1000}`,
  name: `商品 ${i + 1}`,
  category: productCategories[Math.floor(Math.random() * productCategories.length)].id,
  price: Math.floor(Math.random() * 900) + 100,
  stock: Math.floor(Math.random() * 500),
  status: productStatuses[Math.floor(Math.random() * productStatuses.length)].id,
  createdAt: new Date(Date.now() - Math.floor(Math.random() * 30 * 24 * 60 * 60 * 1000)).toISOString(),
  description: `这是商品 ${i + 1} 的详细描述，这是一个非常棒的产品...`,
}));